package IOperation;

import book.Booklist;

import book.Book;

import java.util.Scanner;


public class ShowBook implements ioperation{
    @Override
    public void work(Booklist booklist){

        System.out.println("**********展示图书**********");
        //遍历booklist数组展示
        int currentNum = booklist.bookCount;
        for (int i = 0; i < currentNum; i++) {

            Book book = booklist.getBooks(i);
            System.out.println(book);

        }
    }
}
